package com.hodanet.push;

import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;

public class ChannelConfig {

    /**
     * @return 渠道名称
     */
    public static String getChannel() {
        String channel = "Unknown";
        try {
            PackageManager packageManager = PushUtils.getApp().getPackageManager();
            ApplicationInfo applicationInfo = packageManager.getApplicationInfo(PushUtils.getApp().getPackageName(), PackageManager.GET_META_DATA);
            if (applicationInfo != null && applicationInfo.metaData != null) {
                Object umeng_channel = applicationInfo.metaData.get("UMENG_CHANNEL");
                if (umeng_channel != null) {
                    String var5 = umeng_channel.toString();
                    if (var5 != null) {
                        channel = var5;
                    }
                }
            }
        } catch (Throwable var6) {
        }
        return channel;
    }

}
